package cn.iocoder.yudao.module.erp.controller.admin.secaccount.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;
import java.math.BigDecimal;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - ERP 二级库台账 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SecAccountRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4116")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "事务类型")
    @ExcelProperty(value = "事务类型", converter = DictConvert.class)
    private String affairs;

    @Schema(description = "出入库单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @ExcelProperty("出入库单号")
    private String affairsId;

    @Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @ExcelProperty("部门编号")
    private Long deptId;

    @Schema(description = "来源单位id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14156")
    @ExcelProperty("来源单位id")
    private Long fromDeptId;

    @Schema(description = "去向单位id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("去向单位id")
    private Long toDeptId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4530")
    @ExcelProperty("产品编号")
    private Long productId;

    @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品单位")
    private Long productUnit;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品名称")
    private String productName;

    //    产品单位名称
    @Schema(description = "产品单位名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品单位名称")
    private String productUnitName;
    /**
     * 产品单位编号
     */
    @Schema(description = "产品单位编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品单位编号")
    private Long productUnitId;
    /**
     * 产品分类编号
     */
    @Schema(description = "产品分类编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品分类编号")
    private Long productCategoryId;
    /**
     * 产品分类名称
     */
    @Schema(description = "产品分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品分类名称")
    private String productCategoryName;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品规格")
    private String productStandards;

    @Schema(description = "销售价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "30278")
    @ExcelProperty("销售价格")
    private BigDecimal productPrice;

    @Schema(description = "采购价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "30278")
    @ExcelProperty("采购价格")
    private BigDecimal productPurchasePrice;

    @Schema(description = "产品批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品批次")
    private String productBatch;

    @Schema(description = "入库批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("入库批次")
    private String inboundBatch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("有效期")
    private LocalDateTime productValidityDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "31289")
    @ExcelProperty("数量")
    private BigDecimal count;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "流程实例的编号", example = "10663")
    @ExcelProperty("流程实例的编号")
    private String processInstanceId;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creator;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creatorName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "单位", example = "骨科")
    @ExcelProperty("单位")
    private String deptName;

    @Schema(description = "来源单位", example = "骨科")
    @ExcelProperty("来源单位")
    private String fromDeptName;

    @Schema(description = "去向单位", example = "骨科")
    @ExcelProperty("去向单位")
    private String toDeptName;

}